package com.crm.websocket;



import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.stereotype.Component;
import org.springframework.web.socket.server.standard.ServerEndpointExporter;

@Configuration
public class WebSocketConfig {

	//如果有内置的tomcat，必须配置，自动读取额websocket端点
	@Bean
	 public ServerEndpointExporter endpointExporter() {
		 
		 return new ServerEndpointExporter();
	 }
}
